var myCharts = echarts.init(document.getElementById('tracking_equipment'));
option = {
	backgroundColor: '#2e343c',
    title: {
        text: '设备分类数量',
        textStyle: {
                color: '#fff',
                fontSize: 15
            }
    },
    label: {
        normal: {
            show:true,
            textStyle: {
                color: '#FFFFFF',
                fontSize: 10
            }
        },
    },
    itemStyle: {
            normal: {
                color: function(params) {
                    // build a color map as your need.
                    var colorList = [
                        '#40c5f7', '#8cd62d',
                    ];
                    return colorList[params.dataIndex]
                }
            }
    },
    tooltip: {},
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis: {
        data: ["GPRS","WIFI"],
        axisLabel:{
    		textStyle:{
    			color:'#fff'
    		}
    	}
    },
    yAxis: {
    	axisLabel:{
    		textStyle:{
    			color:'#fff'
    		}
    	}
    },
    series: [{
        name: '数量',
        type: 'bar',
        data: [68, 38,]
    }]
};
myCharts.setOption(option);